/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class Rant implements I_ModifiedLogBean<String>,I_AutoGeneratorStringKey{
      /**
	 * 
	 */
	private static final long serialVersionUID = 5968127890691039701L;
	private String id;//编号
      private String m_sId;//商品编号
      private String m_sName;//商品名称，非存储
      protected String attributeSetid;//商品属性
      protected String customerid;//会员ID
      protected double rantPrice;//压金

      protected String rantCycleStyle;//计租周期
      public static String RANTCYCLESTYLE_everyTime="t";//按次
      public static String RANTCYCLESTYLE_everyDay="d";//每天
      public static String RANTCYCLESTYLE_everyWeek="w";//每星期
      public static String RANTCYCLESTYLE_halfmoon="hm";//半月
      public static String RANTCYCLESTYLE_moon="m";//每月
      public static String RANTCYCLESTYLE_halfyear="hy";//半年
      public static String RANTCYCLESTYLE_year="y";//每年

      public int customDate;//自定义天数

      protected double cyclePrice;//周期租金

      protected int exemptDate;//免租天数
      protected double priceRate;//折扣

      protected Date rantData;//出借时间
      protected Date returnData;//归还时间

      protected String memo;//备注

      protected String rantState;//当前状态
      public static String RANTSTATE_noRant="N";//末借
      public static String RANTSTATE_rant="R";//末还
      public static String RANTSTATE_returned="T";//以还
      
      public static String RANTSTATE_all="all";//全部，查询用
    private Date lastModified;

      public Rant() {
          rantPrice=0;
          rantCycleStyle=RANTCYCLESTYLE_everyDay;
          customDate=0;
          cyclePrice=0;
          exemptDate=0;
          priceRate=0;
          rantData=new Date();
          rantState=RANTSTATE_noRant;
      }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getM_sName() {
        return m_sName;
    }

    public void setM_sName(String m_sName) {
        this.m_sName = m_sName;
    }



    public String getAttributeSetid() {
        return attributeSetid;
    }

    public void setAttributeSetid(String attributeSetid) {
        this.attributeSetid = attributeSetid;
    }

    public int getCustomDate() {
        return customDate;
    }

    public void setCustomDate(int customDate) {
        this.customDate = customDate;
    }

    public String getCustomerid() {
        return customerid;
    }

    public void setCustomerid(String customerid) {
        this.customerid = customerid;
    }

    public double getCyclePrice() {
        return cyclePrice;
    }

    public void setCyclePrice(double cyclePrice) {
        this.cyclePrice = cyclePrice;
    }

    public int getExemptDate() {
        return exemptDate;
    }

    public void setExemptDate(int exemptDate) {
        this.exemptDate = exemptDate;
    }

    public String getM_sId() {
        return m_sId;
    }

    public void setM_sId(String m_sId) {
        this.m_sId = m_sId;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public double getPriceRate() {
        return priceRate;
    }

    public void setPriceRate(double priceRate) {
        this.priceRate = priceRate;
    }

    public String getRantCycleStyle() {
        return rantCycleStyle;
    }

    public void setRantCycleStyle(String rantCycleStyle) {
        this.rantCycleStyle = rantCycleStyle;
    }

    public Date getRantData() {
        return rantData;
    }

    public void setRantData(Date rantData) {
        this.rantData = rantData;
    }

    public double getRantPrice() {
        return rantPrice;
    }

    public void setRantPrice(double rantPrice) {
        this.rantPrice = rantPrice;
    }

    public String getRantState() {
        return rantState;
    }

    public void setRantState(String rantState) {
        this.rantState = rantState;
    }

    public Date getReturnData() {
        return returnData;
    }

    public void setReturnData(Date returnData) {
        this.returnData = returnData;
    }

    public String toString(){
        return m_sName;
    }

    public String getKey() {
        return this.id;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public void setKey(String key) {
       this.id=key;
    }
}
